#include <iostream>

template<typename T,typename U>
U max(T a, T b, U c){
  U x=(U)a;
  U y=(U)b;
  if (x < y) x = y;
  if (x < c) x = c;
  return x;
}

int main(){
  std::cout << (max(1,-1,0)) << std::endl;
  std::cout << (max(1,-1,1.14)) << std::endl;
  return 0;
}
